package cn.interestingshop.service;

import cn.interestingshop.dao.user.UserDao;
import cn.interestingshop.dao.user.UserDaoImpl;
import cn.interestingshop.model.entity.User;

public class UserServiceImpl implements UserService {

    UserDao dao = new UserDaoImpl();

    @Override
    public User findUserByAccount(String account) {
        return dao.findUserByAccount(account);
    }

    @Override
    public int add(User user) {
        return dao.add(user);
    }
}